package com.sunyard.dal.mapper;

import com.sunyard.dal.bo.role.RoleAuditQueryBO;
import com.sunyard.dal.dto.RoleCopyDTO;
import com.sunyard.dal.dto.RoleCopyExportDTO;
import com.sunyard.dal.entity.RoleCopy;

import java.util.List;
import java.util.Map;

public interface RoleCopyMapper {

    int insert(RoleCopy roleCopy);

    int insertSelective(RoleCopy roleCopy);

    int existRoleName(String roleName);

    int countRoleCopyByRoleId(String roleId);

    List<RoleCopyDTO> getRoleCopyListByPage(Map<String, Object> queryMap);

    List<RoleCopyExportDTO> roleAuditExport(RoleAuditQueryBO roleAuditQueryBO);

    RoleCopy getRoleCopyByAuditId(String auditId);

    int updateRoleCopy(RoleCopy roleCopy);

    RoleCopyDTO getRoleCopyDTOByAuditId(String auditId);

    int maxAuditSn(String roleId);
}
